package com.example.a2105_ivideo.livedataTest

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

/**
 * @author yaotianxue
 * @description
 * @date 2025/3/12
 */
class MyViewModel: ViewModel() {
    private val data = SingleLiveData<String>()
    val data_:LiveData<String> get() = data


    fun loadDataFromNet(){
        data.setValue("网络请求的数据")
    }



}